<extend name="Public/base" />
<block name="body">
    <div class="main-title">
        <h2>采价列表</h2>
    </div>


    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th class="">商家</th>
                <th class="">商品名</th>
                <th class="">规格</th>
                <th class="">价格</th>
                <th class="">提交人</th>
                <th class="">日期</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td>{$vo.market_name}</td>
                        <td>{$vo.pname}</td>
                        <td>{$vo.spec}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.report_uid|get_report_name}</td>
                        <td>{$vo.createdAt|time_format}</td>
                        <td>
                            <a class="btn btn-primary" href="{:U('detail')}&id={$vo.id}">明细</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>

    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">

    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">


        //导航高亮
        highlight_subnav('{:U('Report/daily')}');
    </script>
</block>